package com.aaa.mrcai.mapper;



import com.aaa.mrcai.pojo.entity.Dept;
import com.aaa.mrcai.pojo.entity.Emp;
import com.aaa.mrcai.pojo.entity.Role;
import com.aaa.mrcai.pojo.vo.EmpVo;
import com.aaa.mrcai.query.EmpQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author meowyf
 * @version 1.0
 * @Name Z_MJ
 * @date 2021/12/02 19:40:39
 */
public interface EmpMapper {

    List<Emp> list(EmpQuery empQuery);

    Long isEmpExists(@Param("ename") String ename, @Param("telephone") String telephone);

    int addEmp(EmpVo empVo);

    EmpVo getEmp(int id);

    int updateEmp(EmpVo empVo);

    int deleteEmp(int id);

    Long queryEmpTotalCount(EmpQuery empQuery);

    List<Dept> listDept();

    int addUser(EmpVo empVo);

    List<Role> listRole();

    int deleteUser(int id);

    Long isUpEmpExists(EmpVo empVo);
}
